import axios from "axios";
axios.defaults.baseURL='http://localhost:8087/'
export default function doGet(url,param){
    return axios({
        url:url,
        method:"GET",
        params:param,
        dataType: "json"
    })

}
export function doPost(url,data){
    return axios({
        method:"post",
        url:url,
        data:data,
        dataType: "json"
    })
}
export function doPut(url,data){
    return axios({
        method:"put",
        url:url,
        data:data,
        dataType: "json"
    })
}
export function doDelete(url,param){
    return axios({
        method:"delete",
        url:url,
        params:param,
        dataType: "json"
    })
}